<?php


return [
    'server' => [
        'server_name' => 'swoole-kf',
        'host'=> '0.0.0.0',
        'port'=> 9501,

        'setting' => [
            'worker_num' => 6,
            "daemonize"=> 0, //守护进程
            'log_file' => '/www/wwwroot/chat-back/Log/runtime.log' ,
            'max_wait_time' => 60,
            'document_root' => '/www/wwwroot/chat-back/',
            'enable_static_handler'=> true,
            "static_handler_locations" => ['/File'],
            'reload_async' => true, //开启热重载
            'enable_coroutine' => true,  //开启协程容器
            'package_max_length'=> 1024*1024*20  //数据包最大长度
        ]

    ],
    'mysql' => [
        'host'          => '127.0.0.1',
        'port'          => '52115',
        'user'          => 'kf',
        'timeout'       => '30',
        'charset'       => 'utf8mb4',
        'password'      => '',
        'database'      => 'kf',
        'POOL_MAX_NUM'  => '200',
        'POOL_TIME_OUT' => '5',
    ],
    'redis' => [
        'host'          => '127.0.0.1',
        'port'          => '6379',
        'auth'          => '',
        'POOL_MAX_NUM'  => '1000',
        'POOL_MIN_NUM'  => '5',
        'POOL_TIME_OUT' => '0.1',
    ],
    'filesystem'=>[
        'size' => 1024*1024*2,
        'ext'  => ['image/jpg', 'image/jpeg', 'image/pjpeg', 'image/png'],
        'img_path' => "/www/wwwroot/chat-back/File/chat-img/",
    ],
    'videosystem'=>[
        'size' => 1024*1024*20,
        'ext'  => ['video/mp4'],
        'video_path' => "/www/wwwroot/chat-back/File/chat-video/",
    ],
    'imgs'=>[
        'size' => 1024*1024*2,
        'ext'  => ['image/jpg', 'image/jpeg', 'image/pjpeg', 'image/png'],
        'img_path' => "/www/wwwroot/chat-back/File/imgs/",
    ],
    'jwt' => [
        'key' => '@#$%^123456789',
        'iss' => 'kf-server',
        'aud' => 'kf-client'
    ],
    'salt'=> '49f0d0615781e7f3bd8c3aec5e3cfe5c',
    'crypt'=> [
        'iv'  => '1234567891123456' ,
        'encryptKey' => '1234567891123456'
    ],
    //免token认证1
    'pass_route' => [
        '/admin/login/doLogin',
        '/admin/login/test',
        '/v1/customer/createCustomer'
    ],


];


?>
